﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PrintStyle.aspx.cs" Inherits="AlbonWeb.Manager.StyleManager.PrintStyle" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Style Print</title>
    <style type="text/css" media="print">
    .NoPrint
    {
        display:none;
    }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="width: 98%">
        <div class="NoPrint">
            <asp:DropDownList ID="ddlTop" runat="server" AutoPostBack="True" 
                onselectedindexchanged="ddlTop_SelectedIndexChanged">
            </asp:DropDownList>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <input type="button" onclick='window.print()' value="Print" />
        </div>
        <asp:Repeater ID="repTopStyle" runat="server" OnItemDataBound="repTopStyle_ItemDataBound">
            <ItemTemplate>
                <div style="width: 50%; font-size: 18pt; float: left;">
                    <b>
                        <%#Eval("styleName") %></b>
                </div>
                <div style="width: 45%; font-size: 18pt; float: left;">
                    <b>
                        <%#Eval("cnName") %></b>
                </div>
                <asp:HiddenField ID="hftopstyle" runat="server" Value='<%#Eval("ID")%>' />
                <asp:Repeater ID="repStyle" runat="server" OnItemDataBound="repStyle_ItemDataBound">
                    <ItemTemplate>
                        <div style="width: 50%; font-size: 15pt; float: left; margin-left: 5px;">
                            <i>
                                <%#Eval("styleName") %></i>
                            <hr />
                        </div>
                        <div style="width: 45%; font-size: 15pt; float: left;">
                            <i>
                                <%#Eval("cnName") %></i><hr />
                        </div>
                        <asp:HiddenField ID="hfparentid" runat="server" Value='<%#Eval("ID")%>' />
                        <asp:Repeater ID="repValue" runat="server">
                            <ItemTemplate>
                                <div style="width: 50%; font-size: 12pt; float: left; margin-left: 5px;">
                                    <%#Eval("styleName") %>
                                </div>
                                <div style="width: 45%; font-size: 12pt; float: left;">
                                    <%#Eval("cnName") %>
                                </div>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ItemTemplate>
                </asp:Repeater>
            </ItemTemplate>
        </asp:Repeater>
    </div>
    </form>
</body>
</html>
